﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Test2 : MonoBehaviour {

    public Button btn;

	// Use this for initialization
	void Start () {
        btn.onClick.AddListener(OnBtn);
        LuaManager.Instance.Init();
    }
	
	// Update is called once per frame
	void Update () {
		
	}

    private void OnBtn()
    {
        LuaManager.Instance.LoadLuaScript("test");
    }

}
